<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-spring4-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:th="http://www.thymeleaf.org">
<head>
<title>首页</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
	<div class="container" id="content">
		<!-- Main content -->
		<section class="content">
			<input type="hidden" th:value="${user}" id="userId" />
			<div class="box-header with-border">
				<i class="fa fa-th-list"></i>
				<h4 class="box-title">总回款信息</h4>
			</div>
			<div class="box-body">
				<div class="box-header with-border">
					<button type="button" class="btn btn-info importReplacementList">导入回款</button>
					<button type="button" name="add" id="addBtn"
						class="btn btn-info pull-left addBtn">
						<i class="fa fa-plus-circle"></i>添加
					</button>
					<button type="button" name="cancel" id="cancel-btn"
						class="btn btn-info pull-left resetBtn" title="刷新">
						<i class="fa fa-refresh"></i>刷新
					</button>
					<div class="form-inline pull-right">
						<button type="button" name="search" id="search-btn"
							class="btn btn-default pull-right searchBtn" title="查询">
							<i class="fa fa-search"></i>
						</button>
						<input type="text" class="form-control pull-right " id="keyword"
							placeholder="凭证号丨对方户名丨摘要" />
					</div>
				</div>
				<table width="100%" id="receivedPaymentsTotalInfoTable"
					class="mytable dataTable table-bordered text-center table-striped table-hover" cellspacing="0">
					<thead>
						<tr>
							<th width="4%">序号</th>
							<th width="5%">网点号</th>
							<th width="8%">凭证种类</th>
							<th width="5%">凭证号</th>
							<th width="8%">户名</th>
							<th width="8%">账号</th>
							<th width="8%">对方户名</th>
							<th width="8%">对方账号</th>
							<th width="4%">日期</th>
							<th width="6%">交易类型</th>
							<th width="6%">回款金额</th>
							<th width="6%">剩余回款金额</th>
							<th width="5%">回款人</th>
							<th width="10%">摘要</th>
							<th width="10%">交易方式</th>	
							<th width="10%">操作</th>							
						</tr>
					</thead>
					<tbody>
					</tbody>
				</table>
			</div>
		</section>
		<!--添加弹窗-->
		<div class="modal " id="ReceivedPaymentsTotalInfoModal">
			<div class="modal-dialog" role="dialog">
				<div class="modal-content">
					<form id="ReceivedPaymentsTotalInfoEditForm">
						<div class="modal-header">
							<button type="button" class="close" data-dismiss="modal"
								aria-label="Close">
								<span aria-hidden="true">&times;</span>
							</button>
							<h4 class="modal-title">
								<strong>回款信息</strong>
							</h4>
						</div>
						<div class="modal-body">
							<input type="hidden" name="id" id="id" />							
				        <div class="form-horizontal">
				        <div class="form-group">
									<label class="col-sm-2 control-label">网点号</label>
									<div class="col-sm-4">
										<div class="col-md-10">
											<input class="form-control" id="sReceivedPaymentsNetworkNumer"/>
										</div>														
									</div>
									<label class="col-sm-2 control-label">凭证种类</label>
									<div class="col-sm-4">
										<div class="col-md-10">
											<select style="width: 100%" class="form-control" name="sReceivedPaymentsIdentifyType"
												id="sReceivedPaymentsIdentifyType">
												<option></option>
												<option th:each="sReceivedPaymentsIdentifyType:${sReceivedPaymentsIdentifyTypes}" th:text="${sReceivedPaymentsIdentifyType.title}"
													th:value="${sReceivedPaymentsIdentifyType.id}"></option>
											</select>
										</div>
									</div>
							</div>
				        <div class="form-group">
									<label class="col-sm-2 control-label">凭证号</label>
									<div class="col-sm-4">
										<div class="col-md-10">
											<input class="form-control" id="sReceivedPaymentsIdentifyNumber" datatype="*,*1-100" nullmsg="请输入凭证号"/>
										</div>
										<div class="col-md-2">
											<span style="color: #F00; fontsize: 30px">*</span>
										</div>
									</div>
									<label class="col-sm-2 control-label">户名</label>
									<div class="col-sm-4">
										<div class="col-md-10">
											<input class="form-control" id="sReceivedPaymentsName"/>
										</div>
									</div>
								</div>
				        <div class="form-group">
									<label class="col-sm-2 control-label">账号</label>
									<div class="col-sm-4">
										<div class="col-md-10">
											<input class="form-control" id="sReceivedPaymentsAccount"/>
										</div>
									</div>
									<label class="col-sm-2 control-label">对方户名</label>
									<div class="col-sm-4">
										<div class="col-md-10">
											<input class="form-control" id="sReceivedPaymentsCustomerName"/>
											
										</div>
									</div>
									</div>															
				        <div class="form-group">
									<label class="col-sm-2 control-label">对方账号</label>
									<div class="col-sm-4">
										<div class="col-md-10">
											<input class="form-control" id="sReceivedPaymentsCustomerAccount"/>
										</div>
									</div>
									<label class="col-sm-2 control-label">交易方式</label>
									<div class="col-sm-4">
										<div class="col-md-10">
											<input class="form-control" id="sReceivedPaymentTradeWay"/>
										</div>
									</div>
						</div>																							
				        <div class="form-group">
									<label class="col-sm-2 control-label">交易类型</label>
									<div class="col-sm-4">
										<div class="col-md-10">
											<input class="form-control" id="sReceivedPaymentTradeType"/>
										</div>
									</div>
									<label class="col-sm-2 control-label">回款金额</label>
									<div class="col-sm-4">
										<div class="col-md-10">
											
											<input class="form-control" id="nReceivedPaymentActualPrice" datatype="n,*1-100" nullmsg="请输入回款金额"/>
											
										</div>
									</div>
								</div>
				        <div class="form-group">
					        <label class="col-sm-2 control-label">日期</label>
					        <div class="col-sm-4">
								<div class="col-md-10 time">
									<input type="date" id="dReceivedPaymentsDate" class="form-control" />
								</div>
							</div>
							<label class="col-sm-2 control-label">回款人</label>
							<div class="col-sm-4">
								<div class="col-md-10">
									<select class="form-control" style="width: 100%" type="text"  name="sReceivedPaymentPersonId" id="sReceivedPaymentPersonId" datatype="*,*1-100,t" nullmsg="请输入回款人" >
                                              <option></option>
                                              <option th:each="user:${users}"
                                                      th:text="${user.empLogin.name}"
                                                      th:value="${user.empLogin.empId}">
                                              </option>
                                          </select>
								</div>
							</div>																							        												       
						</div>												
				        <div class="form-group">
									<label class="col-sm-2 control-label">摘要</label>
									<div class="col-sm-10">
										<div class="col-md-11">
											<textArea class="form-control" id="sReceivedPaymentMemo" rows="5"></textArea>
										</div>
									</div>
								</div>
		        
				        </div>
						<div class="modal-footer">
							<button type="button" class="btn btn-primary saveBtn">保存</button>
							<button type="button" class="btn btn-default"
								data-dismiss="modal">返回</button>
						</div>
                     </div>
					</form>
				</div>
			</div>
		</div>        
		<script th:src="@{/payment/ReceivedPaymentTotalInfoIndex.js}"></script>
	</div>

</body>
</html>